package com.dong.designpattern.factory.simplefactory;

import com.dong.designpattern.factory.Broom;
import com.dong.designpattern.factory.Car;

/**
 * 简单工厂：交通工具factory
 * 可以定制不同的交通工具，实现Moveable接口即可；
 * 简单工厂的扩展性并不好
 *
 * @author by jiweidong on 2021/11/18.
 */
public class SimpleVehicleFactory {

    public Car createCar() {
        return new Car();
    }

    public Broom createBroom() {
        return new Broom();
    }
}
